import request from "@/utils/request";

// 获取表单token
export function getFormToken(data) {
    return request({
        url: "/api/auth.form/token",
        method: "post",
        data: data
    });
}

export function readSystemCfgApi(data) {
    return request({
        url: "/api/system.config/read",
        method: "post",
        data: data
    });
}

export function saveSystemCfgApi(data) {
    return request({
        url: "/api/system.config/save",
        method: "post",
        data: data
    });
}

export function getTableListApi(data) {
    return request({
        url: "/api/system.system/getTableList",
        method: "post",
        data: data
    });
}

export function getFieldListApi(data) {
    return request({
        url: "/api/system.system/getFieldList",
        method: "post",
        data: data
    });
}

// 系统模块管理
export function getModuleListApi(data) {
    return request({
        url: "/api/system.module/index",
        method: "post",
        data: data
    });
}

// 系统模块管理
export function removeUploadFile(data) {
    return request({
        url: "/api/system.file/remove",
        method: "post",
        data: data
    });
}
